﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_ORDERDETAIL")]
    public class OrderDetailModel:NormalModel
    {
        private long _orderid;
        private long _productionid;
        private string _productionname;
        private string _specification;
        private long _unitid;
        private long _unitgroupid;
        private long _salesunitid;
        private long _blandid;
        private long _seriesid;
        private bool _free;
        private bool _promotion;
        private bool _virtual;
        private long _quoteid;
        private decimal _price;
        private decimal _priceref0;
        private decimal _priceref1;
        private decimal _priceref2;
        private decimal _priceref3;
        private decimal _priceref4;
        private decimal _priceref5;

        private decimal _quantity1;
        private decimal _quantity2;
        private decimal _rate;
        private string _note;
        private decimal _discount;
        private string _deliverydate;
        private decimal _amount;
        private decimal _disamount;
        private long _suiteid;
        private long _productiontypeid;
        public virtual string ProductionName
        {
            get { return _productionname; }
            set
            {
                if (_productionname == value)
                    return;
                _productionname = value;
                if (!PropertyUpdated.Contains("ProductionName"))
                    PropertyUpdated.Add("ProductionName");
            }
        }
        public virtual long ProductionTypeId
        {
            get { return _productiontypeid; }
            set
            {
                if (_productiontypeid == value)
                    return;
                _productiontypeid = value;
                if (!PropertyUpdated.Contains("ProductionTypeId"))
                    PropertyUpdated.Add("ProductionTypeId");
            }
        }
        public virtual string Specification
        {
            get { return _specification; }
            set
            {
                if (_specification == value)
                    return;
                _specification = value;
                if (!PropertyUpdated.Contains("Specification"))
                    PropertyUpdated.Add("Specification");
            }
        }
        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");
            }
        }
        public virtual string DeliveryDate
        {
            get { return _deliverydate; }
            set
            {
                if (_deliverydate == value)
                    return;
                _deliverydate = value;
                if (!PropertyUpdated.Contains("DeliveryDate"))
                    PropertyUpdated.Add("DeliveryDate");
            }
        }
        public virtual bool Free
        {
            get { return _free; }
            set
            {
                if (_free == value)
                    return;
                _free = value;
                if (!PropertyUpdated.Contains("Free"))
                    PropertyUpdated.Add("Free");
            }
        }
        public virtual bool Virtual
        {
            get { return _virtual; }
            set
            {
                if (_virtual == value)
                    return;
                _virtual = value;
                if (!PropertyUpdated.Contains("Virtual"))
                    PropertyUpdated.Add("Virtual");
            }
        }
        public virtual bool Promotion
        {
            get { return _promotion; }
            set
            {
                if (_promotion == value)
                    return;
                _promotion = value;
                if (!PropertyUpdated.Contains("Promotion"))
                    PropertyUpdated.Add("Promotion");
            }
        }
        public virtual long OrderId
        {
            get { return _orderid; }
            set
            {
                if (_orderid == value)
                    return;
                _orderid = value;
                if (!PropertyUpdated.Contains("OrderId"))
                    PropertyUpdated.Add("OrderId");
            }
        }
        public virtual long QuoteId
        {
            get { return _quoteid; }
            set
            {
                if (_quoteid == value)
                    return;
                _quoteid = value;
                if (!PropertyUpdated.Contains("QuoteId"))
                    PropertyUpdated.Add("QuoteId");
            }
        }
        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual long UnitId
        {
            get { return _unitid; }
            set
            {
                if (_unitid == value)
                    return;
                _unitid = value;
                if (!PropertyUpdated.Contains("UnitId"))
                    PropertyUpdated.Add("UnitId");
            }
        }
        public virtual long UnitGroupId
        {
            get { return _unitgroupid; }
            set
            {
                if (_unitgroupid == value)
                    return;
                _unitgroupid = value;
                if (!PropertyUpdated.Contains("UnitGroupId"))
                    PropertyUpdated.Add("UnitGroupId");
            }
        }
        public virtual long SalesUnitId
        {
            get { return _salesunitid; }
            set
            {
                if (_salesunitid == value)
                    return;
                _salesunitid = value;
                if (!PropertyUpdated.Contains("SalesUnitId"))
                    PropertyUpdated.Add("SalesUnitId");
            }
        }
        public virtual long BlandId
        {
            get { return _blandid; }
            set
            {
                if (_blandid == value)
                    return;
                _blandid = value;
                if (!PropertyUpdated.Contains("BlandId"))
                    PropertyUpdated.Add("BlandId");
            }
        }
        public virtual long SeriesId
        {
            get { return _seriesid; }
            set
            {
                if (_seriesid == value)
                    return;
                _seriesid = value;
                if (!PropertyUpdated.Contains("SeriesId"))
                    PropertyUpdated.Add("SeriesId");
            }
        }
        public virtual long SuiteId
        {
            get { return _suiteid; }
            set
            {
                if (_suiteid == value)
                    return;
                _suiteid = value;
                if (!PropertyUpdated.Contains("SuiteId"))
                    PropertyUpdated.Add("SuiteId");
            }
        }
        public virtual decimal Price
        {
            get { return _price; }
            set
            {
                if (_price == value)
                    return;
                _price = value;
                if (!PropertyUpdated.Contains("Price"))
                    PropertyUpdated.Add("Price");
            }
        }
        public virtual decimal PriceRef0
        {
            get { return _priceref0; }
            set
            {
                if (_priceref0 == value)
                    return;
                _priceref0 = value;
                if (!PropertyUpdated.Contains("PriceRef0"))
                    PropertyUpdated.Add("PriceRef0");
            }
        }
        public virtual decimal PriceRef1
        {
            get { return _priceref1; }
            set
            {
                if (_priceref1 == value)
                    return;
                _priceref1 = value;
                if (!PropertyUpdated.Contains("PriceRef1"))
                    PropertyUpdated.Add("PriceRef1");
            }
        }
        public virtual decimal PriceRef2
        {
            get { return _priceref2; }
            set
            {
                if (_priceref2 == value)
                    return;
                _priceref2 = value;
                if (!PropertyUpdated.Contains("PriceRef2"))
                    PropertyUpdated.Add("PriceRef2");
            }
        }
        public virtual decimal PriceRef3
        {
            get { return _priceref3; }
            set
            {
                if (_priceref3 == value)
                    return;
                _priceref3 = value;
                if (!PropertyUpdated.Contains("PriceRef3"))
                    PropertyUpdated.Add("PriceRef3");
            }
        }
        public virtual decimal PriceRef4
        {
            get { return _priceref4; }
            set
            {
                if (_priceref4 == value)
                    return;
                _priceref4 = value;
                if (!PropertyUpdated.Contains("PriceRef4"))
                    PropertyUpdated.Add("PriceRef4");
            }
        }
        public virtual decimal PriceRef5
        {
            get { return _priceref5; }
            set
            {
                if (_priceref5 == value)
                    return;
                _priceref5 = value;
                if (!PropertyUpdated.Contains("PriceRef5"))
                    PropertyUpdated.Add("PriceRef5");
            }
        }
        public virtual decimal Quantity1
        {
            get { return _quantity1; }
            set
            {
                if (_quantity1 == value)
                    return;
                _quantity1 = value;
                if (!PropertyUpdated.Contains("Quantity1"))
                    PropertyUpdated.Add("Quantity1");
            }
        }
        public virtual decimal Quantity2
        {
            get { return _quantity2; }
            set
            {
                if (_quantity2 == value)
                    return;
                _quantity2 = value;
                if (!PropertyUpdated.Contains("Quantity2"))
                    PropertyUpdated.Add("Quantity2");
            }
        }
        public virtual decimal DisAmount
        {
            get { return _disamount; }
            set
            {
                if (_disamount == value)
                    return;
                _disamount = value;
                if (!PropertyUpdated.Contains("DisAmount"))
                    PropertyUpdated.Add("DisAmount");
            }
        }
        public virtual decimal Amount
        {
            get { return _amount; }
            set
            {
                if (_amount == value)
                    return;
                _amount = value;
                if (!PropertyUpdated.Contains("Amount"))
                    PropertyUpdated.Add("Amount");
            }
        }
        public virtual decimal Discount
        {
            get { return _discount; }
            set
            {
                if (_discount == value)
                    return;
                _discount = value;
                if (!PropertyUpdated.Contains("Discount"))
                    PropertyUpdated.Add("Discount");
            }
        }
        public virtual decimal Rate
        {
            get { return _rate; }
            set
            {
                if (_rate == value)
                    return;
                _rate = value;
                if (!PropertyUpdated.Contains("Rate"))
                    PropertyUpdated.Add("Rate");
            }
        }
    }
}
